package com.cjl.learn.builder.way1.entity;

/**
 * Created by Enzo Cotter on 2019-08-23.
 */
public class Sheep implements Cloneable {

    private String name;

    private Toy toy;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Toy getToy() {
        return toy;
    }

    public void setToy(Toy toy) {
        this.toy = toy;
    }

    public Sheep clone() {
        Sheep clone = null;
        try {
            clone = (Sheep) super.clone();
        } catch (CloneNotSupportedException e) {
            e.printStackTrace();
        }
        return clone;
    }
}
